package com.bookstore.service;

import com.bookstore.domain.Order;

import java.util.List;

public interface OrderService {
    public List<Order> findAll(Integer isPay, Integer isDeliver, String username, Integer uid);

    Integer upDeliver(String orderId, Integer isDeliver);

    int upRefund(String orderId, int i);

    List<Order> findAllByUid(Integer isPay, Integer isDeliver, Integer buyers, String username);

    int Pay(String orderId);

    int receipt(String orderId);

    int refund(String orderId);

    Order findOneByOrderId(String orderId);

    int upOrder(Order order);

    int delOrder(String orderId, Integer buyersId);

    int PayToShopping(Order o);
}
